package com.zzxy.mybatis2.dao;

import com.zzxy.mybatis2.entity.User;
import org.apache.ibatis.session.SqlSession;

public class UserDaoImpl {
    SqlSession sqlSession;
    public UserDaoImpl(SqlSession sqlSession){
        this.sqlSession=sqlSession;
    }
    public User findUserDao(int id){
        User user=sqlSession.selectOne("findUserById",id);
        return user;
    }
}
